<div>
    <div>
        <div class="panel panel-default  m-n">
            <div class="panel-heading font-bold">{{editData.name}}</div>
            <form name="agentAreaEditform" role="form" class="ng-valid form-horizontal form-validation">
                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">代理区域名称</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" ng-model="editData.name" placeholder="请输入代理区域名称" ng-trim="true" required>
                        </div>
                    </div>
                    <div ng-if="editData.level == 2">
                        <div class="line line-dashed b-b line-lg pull-in"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">区/县(可多选)</label>
                            <span class="col-sm-8">
                                <label class="i-checks col-sm-6" ng-repeat="d in district.list">
                                    <input type="checkbox" value="{{d.id}}" ng-model="$parent.district.checkEle[d.id]" checked="{{$parent.district.checkEle[d.id]}}">
                                    <i></i>
                                    {{d.name}}
                                </label></span>
                        </div>
                    </div>
                </div>
                <div class="panel-footer text-right">
                    <div>
                        <button type="submit" ng-click="edit()" class="btn m-b-xs w-xs btn-info">保存</button>
                        <button class="btn m-b-xs w-xs btn-default" ng-click="cancel()">取消</button>
                    </div>
                </div>
                </form>
            </div>
        </div>
    </div>
</div>